<?php
    
    /**
     * Created by PhpStorm.
     * User: Administrator
     * Date: 2017/4/12
     * Time: 9:20
     */
    class Father
    {
        public $name;                   // 姓名
        public $age;                    //年齡
        public $height;                 //身高
        public $weight;                 //體重
        
        
        public function say($obj){
            echo "我們都會說話".$obj."<br>";
        }
        public function eat($obj){
            echo "我們都會吃東西".$obj."<br>";
        }
    
        /**
         * Father constructor.
         * @param $name
         * @param $age
         * @param $height
         * @param $weight
         */
        function __construct($name,$age,$height,$weight)
        {
           
            $this->name = $name;
            $this->age = $age;
            $this->height = $height;
            $this->weight = $weight;
            echo "構造函數執行完成::"."姓名是".$name."年龄是：".$age."身高是：".$height."体重是：".$weight."<br>";
        
        }
    }